package com.zpark.controller;

import com.zpark.entity.Person;
import com.zpark.entity.TestPerson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName: com.zpark.controller
 * @ClassName: TestController
 * @Description:
 * @author: RZS
 * @date: 2023/5/4  17:19
 */
@RestController
public class TestController {

    @Autowired
    private Person person;

    @Autowired
    private TestPerson testPerson;

    @GetMapping("/test-01")
    public String test01(){
        return person.toString();
    }

    @GetMapping("/test-02")
    public String test02(){
        return testPerson.toString();
    }
}
